﻿package rd.hardcore.events 
{
	import flash.events.Event;
	import flash.geom.Point;
	
	/**
	 * ...
	 * @author Romain Prache
	 */
	public class ResizeEvent extends Event 
	{
		
		static public const RESIZE : String = "resize_event";
		static public const PLEASE_MINIMIZE: String = "please_minimize";
		static public const PLEASE_MAXIMIZE: String = "please_maximize";
		
		public var pt : Point;
		
		public function ResizeEvent(type:String, pt : Point = null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this.pt = pt;
		} 
		
		public override function clone():Event 
		{ 
			return new ResizeEvent(type, pt, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ResizeEvent", "ptwh", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}